/*
 * @Author: WuFeng <763467339@qq.com>
 * @Date: 2022-07-16 00:58:26
 * @LastEditTime: 2022-07-28 17:46:32
 * @LastEditors: WuFeng <763467339@qq.com>
 * @Description: 系统监控
 * @FilePath: \vue3-element-plus-web\src\api\SysManage\monitor.js
 * @Copyright 版权声明
 */
import request from '@/utils/request'
import qs from 'qs'

/**
 * @description 获取监控数据
 */
export function monitorData(params) {
  const data = params
  return request({
    url: '/monitor/data',
    method: 'get',
    params: data
  })
}

/**
 * @description 监控设置 配置信息获取
 * @param {*} params
 */
export function monitorGetSettings(params) {
  const data = params
  return request({
    url: '/monitor/getSettings',
    method: 'get',
    data
  })
}

/**
 * @description 监控设置 配置信息保存
 * @param {*} params
 */
export function monitorSet(params) {
  const data = params
  return request({
    url: '/monitor/set',
    method: 'post',
    data: qs.stringify(data)
  })
}

export default {}
